#pragma once

#include "rend_Vertex.h"
#include "rend_Texture.h"
#include "rend_Blend.h"

//! Renderowalny czworokat.

struct Quad
{	
	//! Wierzcholki.
	Vertex	v[4];
	//! Tekstura.
	Texture	texture;
	//! Blending.
	Blend	blend;

	//! Ustawia wszystko na 0, teksture na -1 i kolor na bialy.
	Quad()
	{
		blend = Blends::NONE;
		texture = -1;
		for(int i=0; i<4; i++)
		{
			v[i].color = ARGB(255,255,255,255);
			v[i].u = v[i].v = v[i].x = v[i].y = 0;
			v[i].z = 0.0f;
		}
	}
};
